Use NSInputContext to replace NSInputManager, which has been deprecated
since 10.6.
Sync from
0e30a96 in gtk3.
/* reset any partial input for this NSView */
[(GdkMacosBaseView *)nsview unmarkText];
- NSInputManager *currentInputManager = [NSInputManager currentInputManager];
- [currentInputManager markedTextAbandoned:nsview];
+ [[NSTextInputContext currentInputContext] discardMarkedText];
if (qc->preedit_str && strlen (qc->preedit_str) > 0)
{